package com.lpit.controller;

import com.lpit.dto.UserAndTableTheBehaviorDto;
import com.lpit.result.ResponseResult;
import com.lpit.service.TranspondService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
public class TranspondController {
    @Autowired
    private TranspondService transpondService;
    /**
     * 添加用户与文章转发的行为
     * @param userAndTableTheBehaviorDto
     * @return ResponseResult<Integer>
     */
    @GetMapping("/transpond")
    public ResponseResult<Integer> transpond(@RequestBody UserAndTableTheBehaviorDto userAndTableTheBehaviorDto) {
        return transpondService.transpond(userAndTableTheBehaviorDto);
    }
}
